<?php

namespace App\Models;

use App\Models\Contract\SerializeDatetime;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class GroupApply extends Model
{
    use HasFactory, SerializeDatetime;

    protected $fillable = [
        'user_id', 'type', 'members', 'status', 'applied_at', 'price', 'days', 'amount'
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
